* work around dg-100 getconfig issues.
Don't issue the getconfig command on the DG-100. Different DG-100
devices seem to return different numbers of bytes, which leads
to checksum errors, which we treat as fatal. Before release
1.5.1 we didn't issue this command. It was apparently added because
it changed the status light to green on the DG-200.
* restore unintended whitespace change.
int filenum = headers.data[i];
dg100_getfile(filenum, &track);
}
- dg100_getconfig(); // To light on the green LED on the DG-200
+ /* Different DG-100 devices seem to return different numbers of bytes
+ * from the getconfig command. This can result in a mismatched checksum,
+ * which we treat as a fatal error. Avoid this mess by not issuing the
+ * getconfig command on DG-100 devices.
+ */
+ if (strcmp(model->name, "DG-100") != 0) {
+ dg100_getconfig(); // To light on the green LED on the DG-200
+ }
}
static int